<?php
    include("language.php");
?>

<nav>
    <div class="d_menuBar">
        <ul class="menuBarTable">
            <li><a href="home.php"><?php echo $menuBar_home; ?></a></li>
            <li><a href="draws.php"><?php echo $menuBar_drawing; ?></a></li>
            
            <?php
                if(isset($_SESSION['connected'])) 
                {
                    $connected = $_SESSION['connected'];
                    echo '<li><a href="webTv.php">WEB TV</a></li>';
                }
                else $connected = false;

                if(!$connected)
                {
                    //echo '<li><a href="register.php">' . $menuBar_register . '</a></li>';
                    echo '<li><a href="login.php">' . $menuBar_login . '</a></li>';
                }

            ?> 
            <?php

            if(isset($_SESSION['access']) AND $_SESSION['access'] == 10)
            {
                echo '<li><a href="admin.php">' . $menuBar_admin . '</a></li>';
            }

            ?>
        </ul>
    </div>
</nav>